package com.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.entity.Cart;
import com.boot.entity.CartList;

import java.util.List;

/**
 * 购物车表(Cart)表服务接口
 *
 * @author makejava
 * @since 2023-07-20 18:48:25
 */
public interface CartService extends IService<Cart> {

    /**
     * 用户端添加购物车
     * @param pid
     * @param uid
     */
    void addCart(Integer pid, Integer uid, Integer count);

    /**
     * 通过用户id查询该用户的购物车
     * @param uid
     * @return
     */
    List<CartList> showCartsByUid(Integer uid);
}

